﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="/static/admin/Css/public.css" rel="stylesheet" type="text/css" />
<title>用户管理</title>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
	<tr class="topbg"><td>用户管理</td></tr>
	<tr class="tdbg">
		<td height="30">
			<a href="{:url('admin/user/index')}">管理首页</a>&nbsp;|&nbsp;
			<a href="{:url('admin/user/add')}">添加文章</a>
		</td>
	</tr>
</table>
<br />
<form id="form1" name="form1" method="post" action="{:url('admin/user/update')}" onsubmit="return checkForm()">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="border">
	<input type="hidden" value="{$data.id}" name="id">
	<tr class="title"><td colspan="2" align="center">修改用户</td></tr>
    <tr class="tdbg">
		<td width="15%" height="30" align="right">用户名称：</td>
		<td width="85%"><font color="#0000ff">{$data.username}</font></td>
    </tr>
    <tr class="tdbg">
		<td height="30" align="right">用户密码：</td>
		<td>
			<input name="password" type="password" size="20" maxlength="15" />
			<font color="#FF0000">*</font>
			<font color="#666666">长度为5-15位（字母、数字），不能含有特殊符号；不修改请留空！</font>
		</td>
    </tr>
    <tr class="tdbg">
		<td height="30" align="right">确认密码：</td>
		<td>
			<input name="confirmpwd" type="password" maxlength="15" />
			<font color="#FF0000">*</font>
			<font color="#666666">两次输入的密码必须一致；不修改请留空！</font>
		</td>
    </tr>
    <tr class="tdbg">
		<td height="30" align="right">真实姓名：</td>
		<td>
			<input name="name" type="text" size="20" value="{$data.name}"/>
			<font color="#FF0000">*</font>
			<font color="#666666">你的姓名</font>
		</td>
    </tr>
    <tr class="tdbg">
		<td height="30" align="right">联系方式：</td>
		<td>
			<input name="tel" type="text" size="20" value="{$data.tel}" />
			<font color="#FF0000">*</font>
			<font color="#666666">例如：13671181498 或 010-12345678</font>
		</td>
    </tr>
    <tr class="tdbg">
		<td height="30" align="right">账号状态：</td>
		<td>
			{if($data.status == 1) /}
				<input type="radio" name="status" value="1"  checked="checked" >正常
				<input type="radio" name="status" value="0">停用

			{else /}
				<input type="radio" name="status" value="1" >正常
				<input type="radio" name="status" value="0" checked="checked">停用
			{/if}
		</td>
	</tr>
    <tr class="tdbg">
		<td height="30" align="right">角色：</td>
		<td>
			<select name="role">
				{if($data.role == 1)}
					<option value="1" selected="selected">超级管理员</option>
				{/if}
				<option value="0">普通管理员</option>
			</select>
		</td>
    </tr>
    <tr class="tdbg">
		<td height="30" align="right">&nbsp;</td>
		<td>
			<input type="submit" value="提交" />
			<input type="button" onclick="history.go(-1)" value="返回" />
		</td>
    </tr>
  </table>
</form>
</body>
</html>